import React from "react";
import ReactDOM from "react-dom/client";
import "reset-css";
import "@/assets/global.scss";
import { BrowserRouter } from "react-router-dom";
import App from "./App.jsx";
// import Router from './route'

// 引入配置redux；必须在最外层嵌套Provider组件，并注入store
import { Provider } from "react-redux";
import store from "./store/index.js";

ReactDOM.createRoot(document.getElementById("root")).render(
  <Provider store={store}>
    {/* <React.StrictMode> */}
    {/* <App /> */}
    {/* <Router></Router> */}
    <BrowserRouter>
      <App />
    </BrowserRouter>
    {/* </React.StrictMode> */}
  </Provider>
);
